package edu.pku.sei.transformation.editor.model.variable;

import edu.pku.sei.modeler.model.core.MetaPackage;
import edu.pku.sei.transformation.editor.internal.TransformationEditorModelRoot;

public class PrimitiveTypeVariable extends Variable {
	@Override
	public Object[] getTypes() {
		for (Object obj : this.getModel().getPackages()) {
			if (obj instanceof MetaPackage
					&& TransformationEditorModelRoot.PRIMITIVE_PACKAGE
							.equals(((MetaPackage) obj).getName())) {
				return ((MetaPackage) obj).getNamedElements().toArray();
			}
		}
		return new Object[] {};
	}
}
